import request from '@/utils/request'

// 查询样衣直播间列列表
export function listLiveroom(query) {
  return request({
    url: '/product/liveroom/list',
    method: 'get',
    params: query
  })
}

// 查询样衣直播间列详细
export function getLiveroom(id) {
  return request({
    url: '/product/liveroom/' + id,
    method: 'get'
  })
}

// 新增样衣直播间列
export function addLiveroom(data) {
  return request({
    url: '/product/liveroom',
    method: 'post',
    data: data
  })
}

// 修改样衣直播间列
export function updateLiveroom(data) {
  return request({
    url: '/product/liveroom',
    method: 'put',
    data: data
  })
}

// 删除样衣直播间列
export function delLiveroom(id) {
  return request({
    url: '/product/liveroom/' + id,
    method: 'delete'
  })
}
